﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="DanhsachLK.aspx.cs" Inherits="admin_DanhsachLK" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td style="width: 307px">
                <div style="text-align: center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="MaLinhKien" DataSourceID="SqlDataSource1" Height="198px" 
                    Width="523px" AllowPaging="True" AllowSorting="True">
                    <Columns>
                        <asp:BoundField DataField="MaLinhKien" HeaderText="Mã Linh Kiện" 
                            InsertVisible="False" ReadOnly="True" SortExpression="MaLinhKien" />
                        <asp:BoundField DataField="TenLinhKien" HeaderText="Tên Linh Kiện" 
                            SortExpression="TenLinhKien" />
                        <asp:BoundField DataField="GiaBan" HeaderText="Giá Bán" 
                            SortExpression="GiaBan" />
                        <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" 
                            SortExpression="SoLuong" />
                        <asp:BoundField DataField="LoaiLK" HeaderText="Loại Linh Kiện" 
                            SortExpression="LoaiLK" />
                    </Columns>
                </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [MaLinhKien], [TenLinhKien], [GiaBan], [SoLuong], [LoaiLK] FROM [LinhKien]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 307px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 307px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</asp:Content>

